package com.ibm.cps.sql.window;

import com.ibm.cps.sql.AggregationDescriptor.WindowType;

public class WindowDescriptor{
	private final WindowType type;
	private final long size;
	private final long interval;
	
	public WindowDescriptor(WindowType type, long size, long interval) {
		this.type = type;
		this.size = size;
		this.interval = interval;
	}
	
	public WindowType getType() {
		return type;
	}

	public long getSize() {
		return size;
	}

	public long getInterval() {
		return interval;
	}

	@Override
	public String toString() {
		return "{\"WindowDescriptor\":{\"type\":\"" + type
				+ "\", \"size\":\"" + size + "\", \"interval\":\""
				+ interval + "\"}}";
	}
	
}